home *** CD-ROM | disk | FTP | other *** search
/ Cinema Studio: Frank Herrmann / Cinema Studio - Frank Herrmann.iso / tools / dust / dusthelp / loops < prev    next >
Text File  |  1995-05-24  |  728b  |  32 lines

  1.                               Loops
  2. -----------------------------------------------------------------
  3.  
  4.  Dust can perform nested FOR-loops, the loop-counter is equal to 
  5.  the loop-variable of the innerst loop.
  6.  The loop-counter is the number inserted into a string containg
  7.  format-commands.
  8.  
  9.  Syntax:
  10.  
  11.   FOR(<loop-variable>,<from>,<to>[,<step>])
  12.    .
  13.    .
  14.    .
  15.   END
  16.  
  17.  Example:
  18.  
  19.   for(i,1,10)
  20.    echo("unformatted:$, formatted:%")
  21.   end
  22.  
  23.  Contains a string format-commands so this commands will be replaced by
  24.  the recent value of the loop-counter.
  25.  
  26.   $ - inserts the value unformatted
  27.   % - inserts the value formatted
  28.  
  29.  Example:
  30.  A string "$. Objekt: obj.%" is changed into "23. Objekt: obj.0023" if
  31.  the loop-counter was 23.
  32.